package model

// import "gorm.io/gorm"

type Book struct {
	BookID       uint          `json:"bookid" form:"bookid" gorm:"primaryKey; autoIncrement; type:uint; not null; unique"`
	BookName     string        `json:"bookname" form:"bookname" gorm:"not null; unique; type：varchar(256)"`
	Outline      string       `json:"outline" form:"outline" gorm:"type:text"`
	Volumes      []Volume      `json:"volumes" form:"volumes" gorm:" unique"`
	RoleSettings []RoleSetting `json:"rolesettings"`
	UserID       uint          `json:"userid"`
}
